package com.hdax.dm.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hdax.dm.entity.order.DmOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface DmOrderMapper extends BaseMapper<DmOrder> {
    //根据订单编号添加支付宝单号，并修改订单状态
    @Update("update dm_order set aliTradeNo=#{tradeNo},orderType=#{orderType} where orderNo=#{orderNo}")
    Boolean updateOrder(@Param("orderNo") String orderNo, @Param("tradeNo") String tradeNo, @Param("orderType") Long orderType);
}
